<?php

include ADMIN_INCLUDE_DIR."/header.php";
add_new_intro();
?>
<div class="container_l">
		<div class="title_user"><img src="images/icon1.gif" />Thêm mới Giới thiệu</div>
		<div class="table_user">
			<div class="table_user_in2">
				<form name="add_new_intro" action="" method="post">
				<fieldset>
					<?php 
					show_error(); 
					show_success(); 
					?>
					<div class="lineaddnew">
						<div class="lineform">
							<div class="divlabel"><font color="#FF0000">*</font>Tiêu đề:</div>
							<div class="divform"><input type="text" name="title" value="<?php echo stripslashes(htmlentities($_POST["title"]));?>" style="width:480px;" /></div>
						</div>		

						<div class="lineform">
							<div class="divlabel"><font color="#FF0000">*</font>Nội dung:</div>
							<div class="divform"><textarea name="content" id="content" cols="2" rows="10"><?php echo $_POST["content"];?></textarea></div>
						</div>
						
					</div>
				</fieldset>
				
				<div class="linesubmit">
					<input type="hidden" name="add_new_intro" value="okie" />
					<input type="submit" name="add_new" value="Thêm mới" class="button" />
                                        <input type="button" onclick="javascript:history.go(-1);" name="exit" value="Thoát" class="button" />
				</div>
				</form>
			</div>
		</div>
		
</div>
<script language="javascript" type="text/javascript">
var popupImageParams = '&forModule=intro&position=content';
    /*
    ['Source','-','Save','NewPage','Preview','-','Templates'],
    ['Cut','Copy','Paste','PasteText','PasteFromWord','-','Print', 'SpellChecker', 'Scayt'],
    ['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
    ['Form', 'Checkbox', 'Radio', 'TextField', 'Textarea', 'Select', 'Button', 'ImageButton', 'HiddenField'],
    '/',
    ['Bold','Italic','Underline','Strike','-','Subscript','Superscript'],
    ['NumberedList','BulletedList','-','Outdent','Indent','Blockquote'],
    ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
    ['Link','Unlink','Anchor'],
    ['Image','Flash','Table','HorizontalRule','Smiley','SpecialChar','PageBreak'],
    '/',
    ['Styles','Format','Font','FontSize'],
    ['TextColor','BGColor'],
    ['Maximize', 'ShowBlocks','-','About']
     */
    $(document).ready(function (){
        CKEDITOR.config.resize_enabled = false;
        CKEDITOR.config.width = '600';
        CKEDITOR.config.height = 300;
        CKEDITOR.replace( 'content',
        {
            toolbar :
                [[ 'Maximize', '-','Format','Font','FontSize','-','TextColor','BGColor','-','Bold','Italic','Underline','Strike','-','NumberedList','BulletedList','-','Outdent','Indent','Blockquote','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock', '-','Image','Table','-', 'NumberedList', 'BulletedList', '-', 'Link', 'Unlink' ]]
        });

    });
</script>
<?php
include "inc/right.php"; 
include ADMIN_INCLUDE_DIR."/footer.php"; 
?>